<template>
	<view class="main">
		<view class="cont">
			<image class="bg" src="../../static/image/result-bg.png" mode=""></image>
			<image class="icon" src="../../static/image/result-faile.png" mode=""></image>
			<view class="red">
				审核失败!
			</view>
			<view class="tips">
				失败原因
				【<text class="red">{{reason||'暂无'}}</text>】
				，请重新提交认证！
			</view>
			<navigator :url="'/pages/authentication/selfCertification?type=' + type + '&id=' + id" hover-class="none"
				class="btn">重新审核</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				reason: '',
				type: ''
			}
		},
		onLoad(options) {
			this.type = options.type;
			this.id = options.id;
			this.$u.api.userFind({
				id: options.id
			}).then(res => {
				if (res.code == 0) {
					this.reason = res.data.reason;
				}
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.main {
		height: 100vh;
		background-color: #30A1FF;
		padding-top: 192rpx;

		.cont {
			height: calc(100vh - 192rpx);
			position: relative;
			text-align: center;

			.bg {
				position: absolute;
				left: 0;
				top: 0;
				z-index: 5;
				width: 100%;
				height: calc(100vh - 192rpx);
			}

			.icon {
				width: 200rpx;
				height: 200rpx;
				margin-top: 232rpx;
				position: relative;
				z-index: 10;
			}

			.red {
				font-size: 36rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #FF2E3D;
				margin-top: 36rpx;
				position: relative;
				z-index: 10;
			}

			.tips {
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 400;
				color: #828282;
				margin-top: 24rpx;
				position: relative;
				z-index: 10;
				padding: 0 100rpx;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				overflow: hidden;

				.red {
					font-size: 24rpx;
					font-family: PingFang SC;
					font-weight: 400;
					color: #828282;
					margin-top: 24rpx;
					position: relative;
					z-index: 10;
					color: #FF0000;
				}
			}

			.btn {
				width: 560rpx;
				height: 80rpx;
				background: #2A86EF;
				border-radius: 40rpx;
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 400;
				line-height: 80rpx;
				color: #FFFFFF;
				text-align: center;
				margin: 0 auto;
				margin-top: 196rpx;
				position: relative;
				z-index: 10;
			}
		}
	}
</style>
